﻿using MyFloridaHouse.ServiceConn.DistrBldrSvcRef;

namespace MyFloridaHouse.libSvOpenDistricts.MapShapes
{
    public partial class MapShapeLayer
    {
        public void OnServiceDALGetLayerRegionsShapesInViewCompletedEventHandler(LayerRegionsShapesSTO sto)
        {
            if (this.layerID == sto.layerID)
            {
                LayerRegionIDsInView = sto.regionList;
                LoadRegions(sto.layerID, sto.regionList, null);
            }
        }

        public void OnServiceDALGetLayerRegionsDataInViewCompletedEventHandler(LayerRegionsDataSTO sto)
        {
            if (this.layerID == sto.layerID)
            {
                LoadRegionsData(sto.layerID, sto.regionsDataList);
            }
        }
    }
}
